<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:80:"/data/www/sfadmin/public/../application/admin/view/auth_group/set_auth_page.html";i:1488527668;s:76:"/data/www/sfadmin/public/../application/admin/view/template/base_iframe.html";i:1488527668;}*/ ?>
<head>
    <link rel="stylesheet" type="text/css" href="__STATIC__/h-ui/css/H-ui.min.css"/>
    <link rel="stylesheet" type="text/css" href="__STATIC__/h-ui.admin/css/H-ui.admin.css"/>
    <link rel="stylesheet" type="text/css" href="__LIB__/Hui-iconfont/1.0.7/iconfont.css"/>
    <link rel="stylesheet" type="text/css" href="__STATIC__/h-ui.admin/skin/default/skin.css" id="skin"/>
    <link rel="stylesheet" type="text/css" href="__STATIC__/h-ui.admin/css/style.css"/>
    <link rel="stylesheet" type="text/css" href="__STATIC__/css/app.css"/>
    
</head>
<body>



    <div class="check-box pd-5">
        <input type="checkbox" id="checkbox-1" class="select-all">
        <label for="checkbox-1">全选/反选</label>
    </div>
    <form id="set" >
        <input type="hidden" name="id" value="<?php echo $id; ?>">
        <?php if(is_array($parent) || $parent instanceof \think\Collection): $i = 0; $__LIST__ = $parent;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
            <div class="pd-5">
            <table class="table table-border table-bordered table-hover index">
                <thead>
                    <tr>
                        <th class="text-c" width="5%"><input type="checkbox" name="auth_id[]" class="index-chkbox" value="<?php echo $v['id']; ?>" <?php echo !empty($is_auth[$v['id']])?'checked' : ''; ?>/></th>
                        <th class="text-c" width="40%"><?php echo $v['title']; ?></th>
                        <th class="text-c"><?php echo $v['name']; ?></th>
                    </tr>
                </thead>
                <?php if(is_array($v['child']) || $v['child'] instanceof \think\Collection): $i = 0; $__LIST__ = $v['child'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v1): $mod = ($i % 2 );++$i;?>
                    <tbody>
                        <tr class="success">
                            <td class="text-c"><input type="checkbox" name="auth_id[]" class="action-chkbox" value="<?php echo $v1['id']; ?>" <?php echo !empty($is_auth[$v1['id']])?'checked' : ''; ?>/></td>
                            <td class="text-c"><?php echo $v1['title']; ?></td>
                            <td class="text-c"><?php echo $v1['name']; ?></td>
                        </tr>
                    </tbody>
                <?php endforeach; endif; else: echo "" ;endif; ?>                                        
            </table>
            </div>
        <?php endforeach; endif; else: echo "" ;endif; ?>
    </form>




<script type="text/javascript">
    var PUBLIC = '__PUBLIC__';
    var REQUIRE__JS = '__REQUIRE__JS__';
</script>
<!--require Js -->
<script src="__REQUIRE__JS__/require.config.js"></script>
<script src="__REQUIRE__JS__/require.js"></script>
<script src="__PUBLIC__/common/js/functions.js"></script>

	<script type="text/javascript" src="__AJS__/auth_group/set_auth_page.js"></script>

</body>
